package com.qualityevaluationcloudoauth2.daomin;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @program batteryswapcloudProject  
 * @Description  角色菜单关系
 * @Author  CaoAMan
 * @Date 2021-02-25 19:06:57 
 */

@Entity
@Table ( name ="T_ST_ROLEFUNCTION" )
@Data
public class RoleFunction {

	private static final long serialVersionUID =  2156858968386144913L;

	@Id
	/**
	 * 角色功能编号
	 */
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "F_ID" )
	private Long id;

	/**
	 * 菜单ID
	 */
   	@Column(name = "F_MENUID" )
	private Long menuid;

	/**
	 * 角色ID
	 */
   	@Column(name = "F_ROLEID" )
	private Long roleid;

	/**
	 * 创建者
	 */
   	@Column(name = "F_CREATOR" )
	private String creator;

	/**
	 * 创建时间
	 */
   	@Column(name = "F_CREATIONDATE" ,columnDefinition = "datetime")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date creationdate;

	/**
	 * 创建者
	 */
   	@Column(name = "F_MODFIEDUSERID" )
	private Long modfieduserid;

	/**
	 * 更新日期
	 */
   	@Column(name = "F_MODFIEDDATE" ,columnDefinition = "datetime")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date modfieddate;

	/**
	 * 创建者
	 */
   	@Column(name = "F_REMARK" )
	private String remark;

}
